home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / handson / Java / SCAdventure / Person.java < prev    next >
Encoding:
Java Source  |  1998-01-22  |  381 b   |  21 lines

  1. public class Person extends ThingHolder
  2. {
  3.     private Room room; // the Room where the Person is at present
  4.  
  5.   
  6.     Person(Room aRoom ) {
  7.         super( "the player", "you"  ); // init super class
  8.         this.room = aRoom;
  9.   
  10.     }
  11.  
  12.     void setroom(Room aRoom) {
  13.         this.room = aRoom;
  14.     }
  15.  
  16.     Room getroom() {
  17.         return this.room;
  18.     }
  19.     
  20.   
  21. }